package entity;

/**
 * @ClassName MyThread1
 * @Description: TODO
 * @Author yjwu
 * @Date 2020/4/15 20:46
 **/
public class MyThread1 extends Thread {
    private String name;

    public MyThread1(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println("线程" + name + ":" + i);
        }
    }
}
